/**
 * @file port_ble_common.h
 * @brief 
 * @author dotc (dotchan@qq.com)
 * @date 2025-01-21
 * 
 * @copyright Copyright (c) 2025 by 深圳市鹏天微智能科技有限公司, All Rights Reserved.
 */

#ifndef __PORT_BLE_COMMON_H__
#define __PORT_BLE_COMMON_H__

#if defined(CONFIG_PORT_BLE_ENABLE)

/* ==================== [Includes] ========================================== */

#include "xf_utils.h"
#include "port_ble_base.h"
#include "port_ble_msg.h"
#include "xf_ble_gatt_server_types.h"

#ifdef __cplusplus
extern "C" {
#endif

/* ==================== [Defines] =========================================== */

/* ==================== [Typedefs] ========================================== */

/* ==================== [Global Prototypes] ================================= */

struct gapm_dev_config *port_ble_dev_cfg_record_get(void);
void port_ble_dev_cfg_record_set(struct gapm_dev_config *dev_cfg);
bd_addr_t *port_ble_get_local_addr(void);

xf_ble_gatts_evt_cb_t port_xf_ble_gatts_event_cb_get(void);

/* ==================== [Macros] ============================================ */

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif

#endif // __PORT_BLE_COMMON_H__
